package cn.edu.nuc.ssm.domain;

import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

public class Comment {
    private Integer rwid;

    private Integer userid;

    private Integer filmId;

    private String rwcontent;
    @DateTimeFormat(pattern="yyyy-MM-dd")
    //如果页面没有传，使用系统默认值。（当前时间。）
    private Date rwtime = new Date();

    private String rwtitle;
    
    private String filmname;
    
    private String username;
    
    public String getFilmname() {
		return filmname;
	}

	public void setFilmname(String filmname) {
		this.filmname = filmname;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public Integer getRwid() {
        return rwid;
    }

    public void setRwid(Integer rwid) {
        this.rwid = rwid;
    }

    public Integer getUserid() {
        return userid;
    }

    public void setUserid(Integer userid) {
        this.userid = userid;
    }

    public Integer getFilmId() {
        return filmId;
    }

    public void setFilmId(Integer filmId) {
        this.filmId = filmId;
    }

    public String getRwcontent() {
        return rwcontent;
    }

    public void setRwcontent(String rwcontent) {
        this.rwcontent = rwcontent == null ? null : rwcontent.trim();
    }

    public Date getRwtime() {
        return rwtime;
    }

    public void setRwtime(Date rwtime) {
        this.rwtime = rwtime;
    }

    public String getRwtitle() {
        return rwtitle;
    }

    public void setRwtitle(String rwtitle) {
        this.rwtitle = rwtitle == null ? null : rwtitle.trim();
    }
}